.f-table {
    /** 撑满剩余宽度 */
    flex: 1;
    /** 解决布局宽度发生改变时，不会自动缩小宽度。https://github.com/element-plus/element-plus/issues/6202#issuecomment-1047527166 */
    width: 0;
    .f-table-search {
        padding: 16px 10px 0;
        margin-bottom: 10px;
        .el-form {
            .el-form-item__content > * {
                width: 100%;
            }

            .el-form-item--default {
                // 去除全局设置Form 表单的 label 的宽度
                .el-form-item__label {
                    width: unset !important;
                }
            }

            // 去除时间选择器上下 padding
            .el-range-editor.el-input__wrapper {
                padding: 0 10px;
            }
        }
        .operation {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-bottom: 18px;
        }
    }
    .f-table-main {
        display: flex;
        flex: 1;
        flex-direction: column;
        width: 100%;
        height: 100%;
        .f-table-main-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            .f-table-main-header-left {
                display: inline-flex;
                align-items: center;
            }
            .f-table-main-header-right {
                display: inline-flex;
                align-items: center;
                .el-text {
                    margin-right: 10px;
                }
            }
            .el-button {
                margin-bottom: 5px;
            }
        }
        .el-table {
            flex: 1;
            .warning-row {
                --el-table-tr-bg-color: var(--el-color-warning-light-9);
            }
            .success-row {
                --el-table-tr-bg-color: var(--el-color-success-light-9);
            }
            // 修复 safari 浏览器表格错位 https://github.com/HalseySpicy/Geeker-Admin/issues/83
            table {
                width: 100%;
            }
            .el-table__header th {
                height: 45px;
                font-size: 15px;
                font-weight: bold;
                color: var(--el-text-color-primary);
                background: var(--el-fill-color-light);
            }
            .el-table__row {
                height: 45px;
                font-size: 14px;
                .el-table__placeholder {
                    display: inline;
                }
            }
            // 设置 el-table 中 header 文字不换行，并省略
            .el-table__header .el-table__cell > .cell {
                white-space: nowrap;
            }
            .el-table__body-wrapper {
                min-height: 120px;
            }
            // 解决表格数据为空时样式不居中问题(仅在element-plus中)
            .el-table__empty-block {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                .table-empty {
                    line-height: 30px;
                }
            }
            // table 中 image 图片样式
            .table-image {
                width: 50px;
                height: 50px;
                border-radius: 50%;
            }
        }
        // 表格 pagination 样式
        .el-pagination {
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
        }
        // * el-table 组件大小切换样式
        .el-table--small {
            .el-table__header th {
                height: 40px !important;
                font-size: 14px !important;
            }

            .el-table__row {
                height: 40px !important;
                font-size: 13px !important;
            }
        }
        .el-table--large {
            .el-table__header th {
                height: 50px !important;
                font-size: 16px !important;
            }
            .el-table__row {
                height: 50px !important;
                font-size: 15px !important;
            }
        }
    }
}
